package com.hospital.pharmacy.service;

import com.hospital.pharmacy.entity.Purchase;
import org.springframework.stereotype.Service;


import java.sql.Timestamp;
import java.util.Date;

@Service
public interface PurchaseService {
   String insertPurchase(String mec_id,Double pch_price, Integer pch_count, Double pch_total, Date pch_date, Date pch_guarantee_date, String pch_remark);

    String deletePurchaseById(Integer id);
    String selectAllPurchase();
    String selectMedByName(String med_name);
    String selectPurchaseBySupName(String sup_name);
    String updatePurchaseByPurchase(int pch_Id,double pchPrice,double pchTotal,int pchCount,Date pchDate,Date pchGuaranteeDate);
    Purchase selectPurchaseById(int purchase_id);
    String selectPurchaseByDate(Date date);
}
